﻿namespace Gonte.Workflow
{
    /// <summary>
    /// Generic task
    /// </summary>
    public interface ITask
    {
        /// <summary>
        /// Executes a task
        /// </summary>
        /// <param name="context">External information to be passed to the task</param>
        /// <returns>The result of the task</returns>
        TaskResult Execute(TaskContext context);
    }
}
